import ContentList from "../content/index";
import ContentAdd from "../content/conAdd";
import User from "../user/index";
import UserAdd from "../user/userAdd";
import Foods from "../foods/index";
import FoodAdd from "../foods/foodAdd";
import Home from "../home/home";
import Login from "../login/login";
import Register from "../login/register";

const routes = [
    {
      path: '/users/add',
      component: UserAdd,
      exact: false,
    },
    {
      path: '/users/edit',
      component: User,
      exact: false,
    },
    {
      path: '/food/edit',
      component: Foods,
      exact: false,
    },
    {
      path: '/food/add',
      component: FoodAdd,
      exact: false,
    },
    {
      path: '/content/edit',
      component: ContentList,
      exact: false,
    },
    {
      path: '/content/add',
      component: ContentAdd,
      exact: false,
    },
    {
      path: '/home',
      component: Home,
      exact: false,
    },
    {
      path: '/login',
      component: Login,
      exact: false,
    },
    ,
    {
      path: '/register',
      component: Register,
      exact: false,
    },
    {
      redirect:'true',
      path:'/',
      from:'/',
      exact: true,
      to:'/register'
    },
  ];

  export default routes
  